package com.itcast.demoone.kotlin

fun main() {

    // 1. 闭区间
    /*for (i in 1..10) {
        print(i)
    }*/

    // 2. 左闭右开
    /*for (i in 1 until 10) {
        print(i)
    }*/

    // 3. 步长
    /*for (i in 1..30 step 3) {
        println(i)
    }*/

    for (i in 30 downTo 1 step 2) {
        println(i)
    }

}